package com.bmcsoft.ui;

/**
 * @User: Alan
 * @Date: 2019/9/23
 * @Time: 15:14
 * @Version: 1.0
 */

import com.bmcsoft.factory.BeanFactory;
import com.bmcsoft.service.AccountService;
import com.bmcsoft.service.impl.AccountServiceImpl;

/**
 * 模拟一个表现层，用于调用业务层
 */
public class Client {

    public static void main(String[] args) {
//        AccountService as = new AccountServiceImpl();


        for (int i = 0; i < 5; i++) {
            AccountService as = (AccountService)BeanFactory.getBean("accountService");
            System.out.println(as);
            as.saveAccount();
        }
    }
}
